<template>
  <footer class="footer">
    <div class="footer-content">
      <!-- 中间导航区域 -->
      <div class="footer-center">
        <div class="footer-nav">
          <div class="nav-group">
            <h4>功能导航</h4>
            <router-link to="/personal-center">个人中心</router-link>
            <router-link to="/my-promotion">我的推广</router-link>
            <router-link to="/my-benefits">我的权益</router-link>
            <router-link to="/my-orders">我的订单</router-link>
          </div>
          <div class="nav-group">
            <h4>条款与政策</h4>
            <router-link to="/privacy-policy">隐私政策</router-link>
            <router-link to="/user-agreement">用户协议</router-link>
          </div>
          <div class="nav-group">
            <h4>关于我们</h4>
            <router-link to="/studio">工作室简介</router-link>
            <router-link to="/recruit">人才招募</router-link>
          </div>
          <div class="nav-group">
            <h4>合作</h4>
            <div class="business-link" @mouseover="showQRCode = true" @mouseleave="showQRCode = false">
              <span>商务合作</span>
              <!-- 悬浮提示框 -->
              <div class="qr-tooltip" v-show="showQRCode">
                <img :src="require('@/assets/info/business-qr.png')" alt="商务合作二维码" class="qr-code">
                <p class="qr-tip">扫码添加商务合作微信</p>
                <p class="qr-desc">工作时间：周一至周五 9:00-18:00</p>
              </div>
            </div>
            <router-link to="/supply">供给合作</router-link>
          </div>
        </div>
      </div>

      <!-- 右侧社交媒体区域 -->
      <div class="footer-right">
        <div class="nav-right">
          <img src="@/assets/info/logo.png" alt="SHARED-AI" class="logo" />
          <span>SHARED-AI</span>
        </div>
        <h4>关注我们的社交媒体</h4>
        <div class="social-links">
          <a href="#" class="social-link"
            ><i class="el-icon-picture-outline"></i
          ></a>
          <a href="#" class="social-link"><i class="el-icon-video-play"></i></a>
          <a href="#" class="social-link"
            ><i class="el-icon-chat-dot-square"></i
          ></a>
          <a href="#" class="social-link"><i class="el-icon-share"></i></a>
          <a href="#" class="social-link"
            ><i class="el-icon-video-camera"></i
          ></a>
        </div>
        <div class="contact-email">yinheluxiangju@Gmail</div>
      </div>
    </div>

    <!-- 底部版权信息 -->
    <div class="footer-bottom">
      <p>
        © 2024-2025 SHARED-AI | EasyAI工作室 | 辽ICP备2024039606号-2
        |
        ICP经营许可证：辽B2-20230847-4网站使用合法备案中国移动国际专用通道。面向全球用户。
      </p>
    </div>
  </footer>
</template>

<script>
export default {
  name: "FooterBar",
  data() {
    return {
      showQRCode: false
    }
  }
};
</script>

<style scoped>
.footer {
  background-color: #ffffff;
  padding: 40px 0 20px;
  border-top: 1px solid #f0f0f0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

/* 左侧Logo样式 */
.footer-left {
  flex: 0 0 200px;
}

.logo {
  height: 40px;
}

/* 中间导航区域样式 */
.footer-center {
  flex: 1;
  margin: 0 60px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
}

.nav-group {
  margin-right: 40px;
}

.nav-group h4 {
  color: #333333;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}

.nav-group a {
  display: block;
  color: #666666;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-group a:hover {
  color: #42b983;
}

/* 右侧社交媒体区域样式 */
.footer-right {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  padding-left: 100px;
  text-align: left;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.footer-right h4 {
  color: #333333;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-link {
  color: #666666;
  font-size: 20px;
  transition: color 0.3s;
}

.social-link:hover {
  color: #42b983;
}

.contact-email {
  color: #666666;
  font-size: 14px;
}

/* 底部版权信息样式 */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.footer-bottom p {
  color: #999999;
  font-size: 12px;
  line-height: 1.5;
}

.privacy-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}

.privacy-link:hover {
  color: #333;
}

.business-link {
  position: relative;
  cursor: pointer;
  color: #666666;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color 0.3s;
}

.business-link:hover {
  color: #42b983;
}

.qr-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 200px;
  margin-bottom: 10px;
  z-index: 1000;
}

.qr-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.qr-code {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
}

.qr-tip {
  color: #333;
  font-size: 14px;
  margin-bottom: 5px;
}

.qr-desc {
  color: #666;
  font-size: 12px;
}
</style> 